// pages/wholesale/wholesale.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    clicknum:0,
    imgUrls: [
      'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg',
      'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg',
      'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg'
    ],
    eightnav: [
      { icon: '../../resource/image/pfsc-icon1.png', name: '食材', id: 0 },
      { icon: '../../resource/image/pfsc-icon2.png', name: '粮油调料', id: 1 },
      { icon: '../../resource/image/pfsc-icon3.png', name: '酒水饮料', id: 2 },
      { icon: '../../resource/image/pfsc-icon4.png', name: '综合用品', id: 3 },
      { icon: '../../resource/image/pfsc-icon5.png', name: '厨房用具', id: 4 },
      { icon: '../../resource/image/pfsc-icon6.png', name: '专业设备', id: 5 },
      { icon: '../../resource/image/pfsc-icon7.png', name: '粮食类', id: 6 },
      { icon: '../../resource/image/pfsc-icon8.png', name: '其它', id: 7 }
    ],
    hotsell:[
      {img:'../../resource/image/cp7.jpg',title:'产品名称',price:'1999.99',id:34},
      { img: '../../resource/image/cp7.jpg', title: '产品名称', price: '2.01', id: 34 },
      { img: '../../resource/image/cp7.jpg', title: '产品名称', price: '28.06', id: 34 },
      { img: '../../resource/image/cp7.jpg', title: '产品名称', price: '9.99', id: 34 },
      { img: '../../resource/image/cp7.jpg', title: '产品名称', price: '19.99', id: 34 },
      { img: '../../resource/image/cp7.jpg', title: '产品名称', price: '99.99', id: 34 },
    ],
    recommendnav: [
      { name: '冷冻食材', id: '1' },
      { name: '生鲜食材', id: '1' },
      { name: '米面粮油', id: '1' },
      { name: '酒水饮料', id: '1' },
      { name: '厨房用品', id: '1' },
      { name: 'MORE+', id: '1' }
    ],
    cplist: [
      { title: '产品名称', price: '199.99', img: '../../resource/image/cp1.jpg', id: 23 },
      { title: '产品名称', price: '199.99', img: '../../resource/image/cp1.jpg', id: 23 },
      { title: '产品名称', price: '199.99', img: '../../resource/image/cp1.jpg', id: 23 },
      { title: '产品名称', price: '199.99', img: '../../resource/image/cp1.jpg', id: 23 },
      { title: '产品名称', price: '199.99', img: '../../resource/image/cp1.jpg', id: 23 },
      { title: '产品名称', price: '199.99', img: '../../resource/image/cp1.jpg', id: 23 }
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    gosearch: function () {
      wx.navigateTo({
        // url: '../jobDetail/jobDetail?id=' + that.data.org_id,
        url: '../searchpage/searchpage'
      })
    },
    onShareAppMessage: function () {
      return {
        title: '餐饮酒店B2B云智能采购平台小程序!',
        desc: '众源实业'
      }
    },
    navclick: function (e) {
      this.setData({ 'clicknum': e.currentTarget.dataset.index })
    }
  }
})
